<div class="content4 content41 page content" data-page="accountPickupDetail" id="accountPickupDetail">
	<p class="p1"><img src="../../../res/png/round2.png" />&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:changeTab(1)">项目总览</a>&nbsp;>&nbsp;<a href="javascript:void(0)" class="financeDetail">融资项目详情</a>&nbsp;>&nbsp;<a href="javascript:void(0);">提货详情</a></p>
	<div class="pickupForm">
		<div class="dataline">
			<div class="w30p">运单号：
				<a href="javascript:void(0);" class="data" name="pickupNumber"></a>
			</div>
			<div class="w30p">所属融资编号：
				<a href="javascript:void(0);" class="data" name="financeNumber"></a>
			</div>
			<div class="w30p">申请人：<span class="data" name="enterpriseName"></span>-<span class="data" name="applicant"></span></div>
		</div>
		<div class="dataline">
			<div class="w30p">提货方式：<span id="pickupDetailPickupMethod" class="data" name="pickupMethod"></span></div>
			<div class="w30p">配送方式：<span id="pickupDetailDeliveryMethod" class="data" name="deliveryMethod"></span></div>
			<div class="w30p">配送时间：<span class="data" name="deliveryDate"></span></div>
		</div>
		<div class="dataline">
			<div class="w30p">配送地址：<span class="data" name="deliveryAddress"></span></div>
			<div class="w30p">预计应还：<span style="color: #ff7344; font-weight: bold;">&#65509;<span class="data" name="estimateAmount"></span></span>
			</div>
			<div class="w30p">许可额度：&#65509;<span class="data" name="allowValuation"></span></div>
		</div>
		<div class="dataline">附件清单：<span class="fs"></span></div>
		<div class="dataline">申请备注：<span class="data" name="remark"></span></div>
		<div class="barcode" style="float: right; margin-right: 10px; margin-top: 10px;"></div>
		<div>
			<div class="dataline tableTip">申请提货货物：</div>
			<table class="bulkstockTable" border="0" cellspacing="0" cellpadding="0" id="pickupDetailBulkstockBody">
				<script type="text/template" id="pickupDetailBulkstockTpl">
					<tr>
						<th>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;货物名称</th>
						<th>规格型号</th>
						<th>重量(吨)</th>
						<th>体积(m<sup>3</sup>)</th>
						<th>已提</th>
						<th>本次预提数量</th>
					</tr>
					{@each datas as it} {@each it.pickupBulkstocks as item}
					<tr>
						<td style="display: block; margin-left: 21px;">${item.bulkstockName}</td>
						<td>${item.specification}</td>
						<td>${item.weight}</td>
						<td>${item.volume}</td>
						<td>${item.pickup}(${item.unit})</td>
						<td style="display: block; margin-right: 27px;">${item.quantity}(${item.unit})</td>
					</tr>
					{@/each} {@/each}
				</script>
			</table>
		</div>
		<div>
			<div class="saperateLine">---------------------------------------------------------- 指定货箱 ----------------------------------------------------------</div>
			<table class="inventoryTable" border="0" cellspacing="0" cellpadding="0" id="pickupDetailInventoryBody">
				<script type="text/template" id="pickupDetailInventoryTpl">
					<tr>
						<th>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱号</th>
						<th>箱型尺寸</th>
						<th>运单号</th>
						<th>货物</th>
						<th>数量</th>
						<th>重量</th>
						<th>体积</th>
						<th>货物金额</th>
						<th>计息期间</th>
						<th>状态</th>
						<th>操作</th>
					</tr>
					{@each datas as it} {@each it.containerInventorys as item, index}
					<tr inventoryId="${item.inventoryId}">
						<td>${index*1 + 1}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${item.caseNumber}</td>
						<td>${item.caseSize}</td>
						<td>${item.waybillNumber}</td>
						<td>
							{@each item.containerBulkstocks as that} ${that.bulkstockName}(${that.specification})<br /> {@/each}
						</td>
						<td>
							{@each item.containerBulkstocks as that} ${that.quantity}(${that.unit})<br /> {@/each}
						</td>
						<td>
							{@each item.containerBulkstocks as that} ${that.weight}(吨)<br /> {@/each}
						</td>
						<td>
							{@each item.containerBulkstocks as that} ${that.quantity}(m³)<br /> {@/each}
						</td>
						<td>
							{@each item.containerBulkstocks as that} &#65509;${that.financeValuation*1 + item.adjustment}<br /> {@/each}
						</td>
						<td>${(item.valueDate).substring(0, 10)}~${it.deliveryDate}</td>
						<td>${getValueByKey(5, item.supervisionState)}</td>
						<td>
							<a href="javascript:void(0);" class="detail">详情</a>
						</td>
					</tr>
					{@/each} {@/each}
				</script>
			</table>
		</div>
		<div>
			<div class="saperateLine">---------------------------------------------------------- 换货信息 ----------------------------------------------------------</div>
			<table class="table" id="exchangeBulkstockTable">
				<script type="text/template" id="exchangeBulkstockTpl">
					<tr>
						<th>货物名称</th>
						<th>规格型号</th>
						<th>生产厂家</th>
						<th>产地</th>
						<th>估值单价</th>
						<th>重量</th>
					</tr>
					{@each datas as it} {@each it.exchangeBulkstockInfo as item}
					<tr>
						<td>${item.bulkstockName}</td>
						<td>${item.specification}</td>
						<td>${item.manufacture}</td>
						<td>${item.originPlace}</td>
						<td>${item.bulkstockPrice}</td>
						<td>${item.weight}吨</td>
					</tr>
					{@/each} {@/each}
				</script>
			</table>
		</div>
		<div>
			<div class="saperateLine">---------------------------------------------------------- 换箱信息 ----------------------------------------------------------</div>
			<table class="table" id="exchangeInventoryTable">
				<script type="text/template" id="exchangeInventoryTpl">
					<tr>
						<th>物流运单号</th>
						<th>箱号</th>
						<th>箱型尺寸</th>
						<th>铅封号</th>
						<th>货物名称</th>
						<th>规格型号</th>
						<th>重量</th>
						<th>理货时间</th>
						<th>操作</th>
					</tr>
					{@each datas as it} {@each it.exchangeContainerInventory as item, index}
					<tr containerId="${item.containerId}" trayNumber="${item.trayNumber}" bulkstockName="${item.exchangeContainerBulkstock[0].bulkstockName}" quantity="${item.exchangeContainerBulkstock[0].quantity}" weight="${item.exchangeContainerBulkstock[0].weight}" volume="${item.exchangeContainerBulkstock[0].volume}">
						<td>${index*1 + 1} ${item.waybillNumber}</td>
						<td>${item.caseNumber}</td>
						<td>${item.caseSize}</td>
						<td>${item.facingSlip}</td>
						<td>
							{@each item.exchangeContainerBulkstock as that} ${that.bulkstockName}
							<br /> {@/each}
						</td>
						<td>
							{@each item.exchangeContainerBulkstock as that} ${that.specification}
							<br /> {@/each}
						</td>
						<td>
							{@each item.exchangeContainerBulkstock as that} ${that.weight}吨
							<br /> {@/each}
						</td>
						<td>
							${(item.tallyDateTime).substring(0, 10)}
						</td>
						<td>
							{@if item.tallyDateTime == "" && it.exchangeStatus == 2}
							<a href="javascript:void(0);" class="sync">同步</a> <a href="javascript:void(0);" class="manual">手动录入</a>
							{@else}
							<a href="javascript:void(0);" class="syncDetail">详情</a>
							{@/if}
						</td>
					</tr>
					{@/each} {@/each}
				</script>
			</table>
		</div>
		
		<a class="backToProcess" href="javascript:history.go(-1);">返回</a>
		<a class="backToProcess print" href="javascript:void(0);">打印</a>
	</div>
</div>